/*
 * SortVerifier.cpp
 *
 *  Created on:  Jun 12, 2009
 *      Author:  Zach Riggle A37627537
 *      Project: CSE410 Project 2
 */

#include "Log.h"
#include "SortVerifier.h"

SortVerifier::SortVerifier() {

}

SortVerifier::~SortVerifier() {
}

bool SortVerifier::verifySort(vector<int> v) {
    for (int i = 0; i < v.size() - 1; i++) {
        if (v[i] > v[i + 1]) {
            warn("Sort verification failed.  " << v[i] << " > " << v[i+1]);
            return false;
        }
    }

    info("Sort verification passed.");
    return true;
}
